/* 课程列表样式 */
.echarts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding: 20px 20px 60px 20px;
  width: 100%;
}

.echarts-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.echarts-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.echarts-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.echarts-card-cover {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  background: linear-gradient(45deg, #f3f4f6, #f9fafb);
}

.echarts-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.echarts-card-tag-container {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 4px;
}
.echarts-card-tag {
  padding: 4px 8px;
  background: #344767;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.is-active {
  color: #ff4d4f !important;
}

.is-active i {
  color: #ff4d4f !important;
}

.echarts-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.echarts-card:hover {
  transform: translateY(-4px);
}

.echarts-card-delete {
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(255, 77, 79, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 1;
  transition: all 0.2s;
}

.echarts-card-delete:hover {
  transform: scale(1.1);
}

.echarts-card-delete .anticon {
  color: #fff;
  font-size: 12px;
}
.echarts-card-content {
  padding: 10px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.echarts-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
  max-height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  cursor: pointer;
  position: relative;
}

.echarts-card-title:hover::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 100;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: normal;
  white-space: normal;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.echarts-card-title:hover::after {
  opacity: 1;
  transform: translateY(8px);
}

.echarts-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.echarts-card-students {
  font-size: 14px;
  color: #666;
}

.echarts-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
}

.echarts-card-date,
.echarts-card-version {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.echarts-card-date:hover,
.echarts-card-version:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.echarts-card-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #4b5563;
}

.echarts-card-stat,
.echarts-card-students {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.echarts-card-stat:hover,
.echarts-card-students:hover {
  /* transform: translateY(-1px); */
  color: #111827;
  background: #f3f4f6;
}

.echarts-card-stat i,
.echarts-card-students i,
.echarts-card-date i,
.echarts-card-version i {
  font-size: 14px;
  color: #6b7280;
  transition: color 0.3s ease;
}

.echarts-card-stat:hover i,
.echarts-card-students:hover i,
.echarts-card-date:hover i,
.echarts-card-version:hover i {
  color: #111827;
}

.echarts-card-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.echarts-card-price-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
